/* eslint-disable no-unused-vars */
/*
 * @Author: AHANG
 * @Date: 2022-04-12 14:33:41
 * @LastEditors: AHANG
 * @LastEditTime: 2022-07-07 15:43:31
 * @Description:
 */
// node 后端服务器
const userApi = require("./api/userApi");
const bodyParser = require("body-parser");
const express = require("express");
const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

// 后端api路由
app.use("/api/user", userApi);

// 监听端口
app.listen(3000, () => console.log(`Example app listening on port 3000!`));
